package com.syg.scheduled;

import com.syg.configuration.ScheduledOfTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @author syg
 */
@Component
public class DynamicTask02 implements ScheduledOfTask {
    private final Logger logger = LoggerFactory.getLogger(getClass());

    private int i;

    @Override
    public void execute() {
        logger.info("thread id:{},DynamicTask02 execute times:{}", Thread.currentThread().getId(), ++i);
    }
}
